package c.e.a.b.e.c;

import android.net.Uri;
import b.f.a;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class i2 {
    public static final a<String, Uri> a = new a();

    public static synchronized Uri a(String str) {
        Uri uri;
        synchronized (i2.class) {
            a aVar = a;
            uri = (Uri) aVar.getOrDefault(str, null);
            if (uri == null) {
                String str2 = "content://com.google.android.gms.phenotype/";
                String valueOf = String.valueOf(Uri.encode(str));
                uri = Uri.parse(valueOf.length() != 0 ? str2.concat(valueOf) : new String(str2));
                aVar.put(str, uri);
            }
        }
        return uri;
    }
}
